package com.foreknow.demo8;

public class Dog extends Pet {
    @Override
    public void toHospital() {
        this.setHealth(60);
        System.out.println("吃药......");
    }

    @Override
    public void eat() {
        System.out.println("Dog吃饭......");
    }

    /**
     * 子类新扩展的方法
     */
    public void game() {
        System.out.println("Dog plays games.....");
    }

}
